package mark;

/**
 * Created by My on 2015/11/30.
 */

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by Fcy on 2015/11/29.
 * 解决ScrollView嵌套ListView，不能完全显示（ListView不支持分页，全部显示）
 *
 * @deprecated use {@link FullListView } instead
 */
public class SpreadListView extends ListView {

  public SpreadListView(Context context) {
    super(context);
  }

  public SpreadListView(Context context, AttributeSet attrs) {
    super(context, attrs);
  }

  public SpreadListView(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
  }

  @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
    super.onMeasure(widthMeasureSpec, expandSpec);
  }
}
